{layout name="public:layout" /}
<h4 class="text-center text-danger">编辑分类信息</h4>
<form class="form-horizontal" action="{:url('cate/doEdit')}" method="post">
    <div class="form-group">
        <label  class="col-sm-2 control-label">分类名称</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" name="name" value="{$cateInfo.name}" >
        </div>
    </div>

    <div class="form-group">
        <label  class="col-sm-2 control-label">排序</label>
        <div class="col-sm-10">
            <input type="number" class="form-control" name="sort" value="{$cateInfo.sort}" >
        </div>
    </div>

    <div class="form-group">
        <label  class="col-sm-2 control-label">状态</label>
        <div class="col-sm-10">
            <label class="radio-inline">
                <input type="radio" name="status" value="1" checked> 显示
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" value="0"> 隐藏
            </label>
        </div>
    </div>

    <!--    将当前用户id作为隐藏域数据 传递到服务器-->
    <input type="hidden" name="id" value="{$cateInfo.id}">


    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-info">修改</button>
        </div>
    </div>
</form>
